-- GENERATED SPELL FOR [Wing Commander Mulverick] --


function spell0_13181(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13181', 595, 1)
end

function spell1_13181(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13181', 30316, 1)
end

function Sorts_13181(pUnit, Event)
local choix_sorts_13181 = math.random(0, 1)
if choix_sorts_13181 == 0 then
pUnit:RegisterEvent('spell0_13181', 1, 1)
end
if choix_sorts_13181 == 1 then
pUnit:RegisterEvent('spell1_13181', 1, 1)
end
end

function mob13181_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13181', math.random(1500, 3000), 1)
end

function mob13181_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13181_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13181_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13181, 1, 'mob13181_Action')
RegisterUnitEvent(13181, 2, 'mob13181_Leave')
RegisterUnitEvent(13181, 3, 'mob13181_Kill')
RegisterUnitEvent(13181, 4, 'mob13181_Die')
